package com.whl.sm.controller.dynamic;


import com.whl.sm.common.result.Result;
import com.whl.sm.controller.BaseController;
import com.whl.sm.service.dynamic.LikeOperateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuhaolun
 * @since 2022-02-17
 */
@RestController
@RequestMapping("/like-operate")
public class LikeOperateController extends BaseController {

    @Autowired
    private LikeOperateService likeOperateService;

    @RequestMapping("/likeOperate")
    public Result likeOperate(@RequestParam("id") String id, @RequestParam("type")String type){
        return likeOperateService.likeOperate(id,type);
    }

}
